
import { createApp } from 'vue'
import App from './App.vue'
const  app =createApp(App)
// 引入elementPlus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 引入element图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(ElementPlus)
// 引入pinia
import { createPinia } from 'pinia'
// 创建 Pinia 实例
const pinia = createPinia()
// 挂载 Pinia 到应用
app.use(pinia)
import router from './router'
app.use(router)
import WangEditor from './components/WangEditor.vue';
app.component('WangEditor',WangEditor)
app.mount('#app')

